import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index' //主界面
import mine from '@/components/mine' //我的
import notice from '@/components/notice' //通告
import home from '@/components/home' //主页
import operations from '@/components/home/operations' //业务操作
import login from '@/components/login' //登录
import cost from '@/components/home/cost' //费用报销
import detail from '@/components/detail' //派车单详情页面
import detailCost from '@/components/home/cost/detailCost' //费用-派车单详情页面
import nine1 from '@/components/home/nine/nine1' //清罐
import nine3 from '@/components/home/nine/nine3' //到厂
import nine4 from '@/components/home/nine/nine4' //装车
import nine5 from '@/components/home/nine/nine5' //铅封
import nine6 from '@/components/home/nine/nine6' //抵达
import nine7 from '@/components/home/nine/nine7' //取样
import nine8 from '@/components/home/nine/nine8' //卸车
import nine9 from '@/components/home/nine/nine9' //在途反馈
import nine10 from '@/components/home/nine/nine10' //收款
import personal from '@/components/userInfo/personal' //个人信息
import instructions from '@/components/userInfo/instructions' //个人信息
import addressBook from '@/components/userInfo/addressBook' //个人信息
import password from '@/components/userInfo/password' //个人信息
import recodeCost from '@/components/home/cost/recodeCost' //费用登记
Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: 'index',
    component: index,
    meta: {
      header: '曙光TMS'
    },
    children: [{
      path: '/home',
      name: 'home',
      meta: {
        header: '曙光TMS'
      },
      component: home,
    }, {
      path: '/notice',
      name: 'notice',
      meta: {
        header: '通告'
      },
      component: notice
    }, {
      path: '/mine',
      name: 'mine',
      meta: {
        header: '我的'
      },
      component: mine
    }],
  },
  {
    path: '/operations',
    name: 'operations',
    meta: {
      header: '派车单-业务操作',
      isBack: true
    },
    component: operations,
  }, {
    path: '/login',
    name: 'login',
    meta: {
      header: '曙光TMS'
    },
    component: login,
  }, {
    path: '/cost',
    name: 'cost',
    meta: {
      header: '派车单-费用报销',
      isBack: true
    },
    component: cost,
  } ,{
    path: '/detail',
    name: 'detail',
    meta: {
      header: '派车单详情信息',
      isBack: true
    },
    component: detail,
  } ,{
    path: '/nine1',
    name: 'nine1',
    meta: {
      header: '清罐',
      isBack: true
    },
    component: nine1,
  },{
    path: '/nine3',
    name: 'nine3',
    meta: {
      header: '到厂',
      isBack: true
    },
    component: nine3,
  },{
    path: '/nine4',
    name: 'nine4',
    meta: {
      header: '装车',
      isBack: true
    },
    component: nine4,
  },{
    path: '/nine5',
    name: 'nine5',
    meta: {
      header: '铅封',
      isBack: true
    },
    component: nine5,
  },{
    path: '/nine6',
    name: 'nine6',
    meta: {
      header: '抵达',
      isBack: true
    },
    component: nine6,
  },{
    path: '/nine7',
    name: 'nine7',
    meta: {
      header: '取样',
      isBack: true
    },
    component: nine7,
  },{
    path: '/nine8',
    name: 'nine8',
    meta: {
      header: '卸车',
      isBack: true
    },
    component: nine8,
  },{
    path: '/nine9',
    name: 'nine9',
    meta: {
      header: '在途反馈',
      isBack: true
    },
    component: nine9,
  },{
    path: '/nine10',
    name: 'nine10',
    meta: {
      header: '收款',
      isBack: true
    },
    component: nine10,
  },{
    path: '/detailCost',
    name: 'detailCost',
    meta: {
      header: '派车单详情',
      isBack: true
    },
    component: detailCost,
  },{
    path: '/personal',
    name: 'personal',
    meta: {
      header: '个人信息',
      isBack: true
    },
    component: personal,
  },{
    path: '/instructions',
    name: 'instructions',
    meta: {
      header: '操作指南',
      isBack: true
    },
    component: instructions,
  },{
    path: '/addressBook',
    name: 'addressBook',
    meta: {
      header: '通讯录',
      isBack: true
    },
    component: addressBook,
  },{
    path: '/password',
    name: 'password',
    meta: {
      header: '修改密码',
      isBack: true
    },
    component: password,
  }
  ,{
    path: '/recodeCost',
    name: 'recodeCost',
    meta: {
      header: '费用登记',
      isBack: true
    },
    component: recodeCost,
  }
  ],
  // mode: 'history'
})

